/**
 * This code is released under lgpl v3 license.
 * All rights reserved.
*/

package bridge;

import com.google.gwt.core.client.JavaScriptObject;

/**
 *  AS3Proxy overlay type
 * @author yuan yunchang    dukerr@gmail.com
 */
public class AS3Proxy extends JavaScriptObject{

    protected AS3Proxy() {
    }
    /**
     *
     * @return the class name of as3 object
     */
    public native final String getTypeName()/*-{
    return this.typeName.toString()
    }-*/;
    /**
     *
     * @return bridge instance this object created on
     */
    public native final FABridgeInstance getBridge()/*-{
    return this.bridge;
    }-*/;

    /**
     * get id of as3 object
     * @return
     */
    public native final double getInstanceID()/*-{
    return this.fb_instance_id;
    }-*/;
    public native final void addRef()/*-{
    this.addRef()
    }-*/;
    public native final void release()/*-{
    this.release()
    }-*/;


}
